package cn.webrx.t3;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

public class T implements Callable<Integer> {
    private Integer i;

    public T() {
        this.i = 10;
    }

    public T(int i) {
        this.i = i;
    }


    @Override
    public Integer call() throws Exception {
        try{
            TimeUnit.SECONDS.sleep(3);
        }catch(Exception e){
            e.printStackTrace();
        }
        return this.i * this.i;
    }
}
